﻿using System;
using System.Collections.Generic;
using System.Text;
using WordService.Model;

namespace WordService.Business.IBLL
{
    public interface IKeywordBLL
    {
        /// <summary>
        /// 创建一个关键字
        /// </summary>
        /// <param name="keyword"></param>
        /// <returns></returns>
        Keyword CreateKeyword(Keyword keyword);
        /// <summary>
        /// 批量创建关键字
        /// </summary>
        /// <param name="keywords"></param>
        /// <returns></returns>
        Boolean CreateKeywords(IList<Keyword> keywords);
        /// <summary>
        /// 检查关键字
        /// </summary>
        /// <param name="keyword"></param>
        /// <returns></returns>
        Boolean CheckKeyword(Keyword keyword);
        /// <summary>
        /// 修改关键字
        /// </summary>
        /// <param name="keyword"></param>
        /// <returns></returns>
        Boolean ModifyKeyword(Keyword keyword);
        /// <summary>
        /// 查询关键字
        /// </summary>
        /// <param name="authorName"></param>
        /// <param name="insName"></param>
        /// <param name="frequency"></param>
        /// <param name="year"></param>
        /// <returns></returns>
        IList<Model.Keyword> QueryByCondition(string authorName, string insName, long frequency, string year);
        /// <summary>
        /// 查询所有的关键字
        /// </summary>
        /// <returns></returns>
        IList<Keyword> QueryAllKeywords();
    }
}
